package com.tjmc.tiomscore.dao;

import com.tjmc.tiomscore.model.TiAlarmRule;
import com.tjmc.tiomscore.model.TiAlarmRuleExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TiAlarmRuleMapper {
    long countByExample(TiAlarmRuleExample example);

    int deleteByExample(TiAlarmRuleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TiAlarmRule record);

    int insertSelective(TiAlarmRule record);

    List<TiAlarmRule> selectByExample(TiAlarmRuleExample example);

    TiAlarmRule selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TiAlarmRule record, @Param("example") TiAlarmRuleExample example);

    int updateByExample(@Param("record") TiAlarmRule record, @Param("example") TiAlarmRuleExample example);

    int updateByPrimaryKeySelective(TiAlarmRule record);

    int updateByPrimaryKey(TiAlarmRule record);
}